﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/MasterPage.Master" AutoEventWireup="true" CodeBehind="EditCommunication.aspx.cs" Inherits="GRC_TPE_WebApp.View.Private.Communication.EditCommunication" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
<fieldset>
        <legend>Modifier une communication : </legend>
                <table>
                    <tr>
                        <asp:ValidationSummary ID="editCommunicationSummary" runat="server"
                        headerText="Il y a des erreurs sur la page :" />
                    </tr>
                    <tr>
                        <td>Titre : </td>
                        <td>
                            <asp:TextBox ID="editCommunicationTitre" runat="server" Width="350" />

                            <%--Validator--%>
                            <asp:RequiredFieldValidator ID="titreRequired" runat="server"
                            ControlToValidate="editCommunicationTitre"
                            ErrorMessage="Le titre est requis."> *
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>Date : </td>
                        <td>
                            <asp:Calendar ID="C_Date" runat="server" OtherMonthDayStyle-ForeColor="DimGray"></asp:Calendar>
                            <%--<asp:TextBox ID="editCommunicationDate" runat="server" />--%>

                            <%--Validator--%>
                            <%--<asp:RequiredFieldValidator ID="dateRequired" runat="server"
                            ControlToValidate="editCommunicationDate"
                            ErrorMessage="La date est requise."> *
                            </asp:RequiredFieldValidator>--%>
                        </td>
                    </tr>
                    <tr>
                        <td>Type : </td>
                        <td>
                            <asp:DropDownList ID="editCommunicationType" runat="server">
                                <asp:ListItem>E-mail</asp:ListItem>
                                <asp:ListItem>Téléphone</asp:ListItem>
                                <asp:ListItem>Visite</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Description : </td>
                        <td>
                            <asp:TextBox ID="editCommunicationDescription" runat="server" TextMode="MultiLine" Width="350" Height="100" />

                            <%--Validator--%>
                            <asp:RequiredFieldValidator ID="descriptionRequired" runat="server"
                            ControlToValidate="editCommunicationDescription"
                            ErrorMessage="La description est requise."> *
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>Client : </td>
                        <td>
                            <asp:Label ID="L_Client" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>Commercial : </td>
                        <td>
                            <asp:Label ID="L_User" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Button ID="B_SaveComm" runat="server" Text="Enregistrer" OnClick="B_SaveComm_Click"/></td>
                        <td><asp:Button ID="B_Cancel" runat="server" Text="Annuler" OnClick="B_Cancel_Click" CausesValidation="false"/></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="editCommErrorMessage"  runat="server" />
                        </td>
                    </tr>
                </table>
    </fieldset>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="footer" runat="server">
</asp:Content>